package org.webguvenligi.jsecureimage.tests;

import org.webguvenligi.jsecureimage.JSecureImage;

import junit.framework.TestCase;

public class JSecureImageTest extends TestCase {

	public JSecureImageTest(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public final void testIsValidImageStringStringString() {		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.jpg", "jpg"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.png", "png"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.gif", "gif"));		
		assertTrue(JSecureImage.isValidImage("testimages", "test.gif", "gif"));		
		assertTrue(JSecureImage.isValidImage("testimages", "test.gif", "jpg"));		
		assertTrue(JSecureImage.isValidImage("testimages", "test.gif", "png"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.jpg", "png"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.jpg", "gif"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.gif", "jpg"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.gif", "png"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.png", "gif"));		
		assertTrue(JSecureImage.isValidImage("testimages", "valid.png", "jpg"));		
	}

}
